﻿using DFGK_WMS.Model.Dto;
using DFGK_WMS.Model.Dto.YS;
using DFGK_WMS.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK.IService
{
    public interface IInventoryLogService
    {
        /// <summary>
        /// 查询库存流水
        /// </summary>
        /// <param name="WarehouseId"></param>
        /// <param name="AreaId"></param>
        /// <param name="SourceType"></param>
        /// <param name="MaterialId"></param>
        /// <param name="StartTime"></param>
        /// <param name="EndTime"></param>
        /// <returns></returns>
        List<InventoryLogDto> GetInventoryflow(long WarehouseId, long AreaId, int SourceType,
            string? MaterialName, int pageIndex, int pageSize, out int totalCount);

        /// <summary>
        /// erp查询库存流水
        /// </summary>
        /// <param name="Sourcesn"></param>
        /// <param name="MaterialName"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="totalCount"></param>
        /// <returns></returns>
        List<ErpGetInventoryLogDto> ERPGetInventoryflow(string? Sourcesn,
           string? MaterialName, int pageIndex, int pageSize, out int totalCount);
    }
}
